package com.black.cat.jvm.instructions.loads.dload;


import com.black.cat.jvm.instructions.base.InstructionNoOperands;
import com.black.cat.jvm.rtda.Frame;

/**
 * @Author blackcat
 * @create 2021/8/13 14:15
 * @version: 1.0
 * @description:将第1个double类型本地变量推送到栈顶
 */
/**
 * @Author blackcat
 * @create 2021/8/13 14:15
 * @version: 1.0
 * @description:将第1个double类型本地变量推送到栈顶
 */
public class DLOAD_0 extends InstructionNoOperands {

    @Override
    public void execute(Frame frame) {
        double val = frame.localVars().getDouble(0);
        frame.operandStack().pushRef(val);
    }

}